package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"lot_admin_api/internal/model"
)

// AddRoleReq  新增角色
type AddRoleReq struct {
	g.Meta `path:"/role/add" tags:"角色模块" method:"post" summary:"新增角色"`
	model.RoleInfo
}

// EditRoleReq  编辑角色
type EditRoleReq struct {
	g.Meta `path:"/role/edit" tags:"角色模块" method:"post" summary:"编辑角色"`
	model.RoleInfoRes
}

// DeleteRoleReq  删除角色
type DeleteRoleReq struct {
	g.Meta `path:"/role/delete" tags:"角色模块" method:"delete" summary:"删除角色"`
	model.RoleIdRes
}

// RoleInfoReq  获取角色详情及权限
type RoleInfoReq struct {
	g.Meta `path:"/role/info" tags:"角色模块" method:"get" summary:"获取角色详情及权限"`
	model.RoleIdRes
}

// RoleListInfoReq  获取角色列表
type RoleListInfoReq struct {
	g.Meta `path:"/role/list" tags:"角色模块" method:"get" summary:"角色列表"`
	*model.RoleTerm
}
